//1.设置分页列表请求的参数类型
export interface gethosSetListParamsType {
    page: number,
    limit: number,
    hosname?: string,
    hoscode?: string
}

// 2.医院设置中，获取列表请求的返回值类型
/*  
        "id": 98138,
        "createTime": "2022-07-17 21:09:23",
        "updateTime": "2022-07-17 21:09:23",
        "isDeleted": 0,
        "param": {},
        "hosname": "坤坤太美医院",
        "hoscode": "bgq2xfodfb",
        "apiUrl": "http://www.kunkun.com",
        "signKey": "ce41329359a6656dc9e2124b3b7c5cba",
        "contactsName": "坤坤",
        "contactsPhone": "1232998439",
        "status": 1 
*/
export interface gethosSetListItemsType {
    id: number,
    createTime: string,
    updateTime: string,
    isDeleted: number,
    param: object,
    hosname: string,
    hoscode: string,
    apiUrl: string,
    signKey: string,
    contactsName: string,
    contactsPhone: string,
    status: 0 | 1
}

// 3.返回完整数据类型

/* 
data {
    records:[],
     "total": 113,
    "size": 4,
    "current": 1,
    "orders": [],
    "hitCount": false,
    "searchCount": true,
    "pages": 29
}
*/


// 4.返回值Records这个数组的类型
export type gethosSetListRecordsType = gethosSetListItemsType[];

export interface gethosSetListReturnType {
    records: gethosSetListRecordsType,
    total: number,
    size: number,
    current: number,
    orders: object,
    hitCount: boolean,
    searchCount: boolean,
    pages: number
}



// 设置新增医院参数类型
export interface addHospitalType {
    hosname?:string,
    hoscode?:string,
    apiUrl?:string,
    contactsName?:string,
    contactsPhone?:string,
}

// 设置获取点击后对应的item的类型
export interface gethospitalItemType extends addHospitalType{
    id?:string 
}